package com.leo.customer.entity.pojo

import javax.validation.constraints.Pattern

data class AuthenticatePo(
    @field:Pattern(regexp = "^[\u4E00-\u9FA5]+$", message = "请输入正确姓名")
    var realName: String,
    @field:Pattern(
        regexp = "^[1-9]\\d{5}(?:18|19|20)\\d{2}(?:0\\d|10|11|12)(?:0[1-9]|[1-2]\\d|30|31)\\d{3}[\\dXx]$",
        message = "请输入正确身份证号"
    )
    var identityNumber: String
)
